package com.itnan.user.dao;

import com.itnan.user.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by tangjian on 27/4/14.
 */
public interface UserDao extends JpaRepository<User, Long> {

    User findByUserNameAndUserPassword(String userName, String userPassword);

    User findByUserName(String userName);

}
